package entity.salary;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author beisheng
 * @since 2023-03-14
 */
@Getter
@Setter
@TableName("sa_deductions")
public class Deductions implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 假期计薪规则序号
     */
    @TableId(value = "holiday_rules_id", type = IdType.AUTO)
    private Integer holidayRulesId;

    /**
     * 方案名称
     */
    @TableField("scenario_name")
    private String scenarioName;

    /**
     * 规则
     */
    @TableField("rules")
    private String rules;

    /**
     * 状态
     */
    @TableField("state")
    private Integer state;

    /**
     * 操作时间
     */
    @TableField("operation_time")
    private LocalDateTime operationTime;

    /**
     * 创建时间
     */
    @TableField("creat_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date creatTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 删除标识
     */
    @TableField("delete_flage")
    private Integer deleteFlage;


}
